import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import Http from "./plugins/http";
import Config from "./config";
import Api from "./api";
import Storage from "./plugins/storage";
import Util from "./plugins/util";
import Cache from "./plugins/cache";
import State from './plugins/state';
import Bridge from "./plugins/bridge";
import * as Enums from "./plugins/enums";
import VueClipBoard from 'vue-clipboard2';
// import Adjust from "@adjustcom/adjust-web-sdk";
import trackPixel from "./plugins/trackPixel";
/**
 * tool
 */
Vue.config.productionTip = false;
Vue.prototype.$http = Http;
Vue.prototype.$config = Config;
Vue.prototype.$api = Api;
Vue.prototype.$storage = Storage;
Vue.prototype.$util = Util;
Vue.prototype.$cache = Cache;
Vue.prototype.$state = State;
Vue.prototype.$bridge = Bridge;
Vue.prototype.$enums = Enums;
Vue.prototype.$back = () => window.history.back();
Vue.use(VueClipBoard)
// Vue.prototype.$adjust = Adjust
Vue.prototype.$trackPixel = trackPixel
/**
 * debug
 */
// if (!Util.env.isProd()) new VConsole();
/**
 * vant lazyload
 */
// import { Lazyload } from "vant";
// Vue.use(Lazyload, {
//   lazyComponent: true,
// });
/**
 * style
 */
import ElementUI from "element-ui";
Vue.use(ElementUI);
import 'element-ui/lib/theme-chalk/index.css';



import { regAllComponents } from './components/base/index'
regAllComponents(Vue)



import Vant from "vant";
Vue.use(Vant);
import "vant/lib/index.css";
// require("./assets/css/base.css");
// require("lib-flexible");

require("./assets/css/main.css")
require("./assets/css/vendor/aos.css")

import lang from 'element-ui/lib/locale/lang/es';
import locale from 'element-ui/lib/locale';

locale.use(lang);


new Vue({
  router,
  created() {},
  render: (h) => h(App),
}).$mount("#app");
